package edu.nf.ioc.test.controller;

import edu.nf.ioc.annotation.Component;
import edu.nf.ioc.annotation.Inject;
import edu.nf.ioc.annotation.Scope;
import edu.nf.ioc.test.service.UserService;

@Component("controller")
@Scope("prototype")
public class UserController {

    @Inject(name = "service")
    private UserService service;

    public void add(){
        service.add();
    }
}
